package org.example.dic.core.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.example.system.common.bean.BaseEntity;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 数据字典信息表
 * </p>
 *
 * @author Joey
 * @since 2021-05-13
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="DicInfo对象", description="数据字典类型表 ")
public class DicInfo extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "父级id")
    @TableField("parentId")
    @JsonSerialize(using= ToStringSerializer.class)
    private Long parentId;

    @ApiModelProperty(value = "路径级别")
    @TableField("idPath")
    private String idPath;

    @ApiModelProperty(value = "类型key")
    @TableField("typeKey")
    private String typeKey;

    @ApiModelProperty(value = "字典key")
    @TableField("dicKey")
    private String dicKey;

    @ApiModelProperty(value = "字典文本")
    @TableField("dicText")
    private String dicText;

    @ApiModelProperty(value = "序号")
    @TableField("sortNum")
    private Integer sortNum;

}
